package com.feonix.common.view.grid;

public class Head {

	private String title;
	private String field;
	private int width = 200;

	private String align = "center";

	private String cellAlign = "center";

	private Boolean sortable = false;

	private Boolean resizable = false;

	private String editor = null;

	private Boolean hidden = false;

	private Boolean checkbox = false;

	private Boolean tip = false;

	private Boolean fixed = false;

	public static Head getInstance() {
		return new Head();
	}

	public Head setCellAlign(String cellAlign) {
		this.cellAlign = cellAlign;
		return this;
	}

	public Head setTitle(String title) {
		this.title = title;
		return this;
	}

	public Head setField(String field) {
		this.field = field;
		return this;
	}

	public Head setWidth(int width) {
		this.width = width;
		return this;
	}

	public Head setAlign(String align) {
		this.align = align;
		return this;
	}

	public Head setSortable(Boolean sortable) {
		this.sortable = sortable;
		return this;
	}

	public Head setResizable(Boolean resizable) {
		this.resizable = resizable;
		return this;
	}

	public Head setHidden(Boolean hidden) {
		this.hidden = hidden;
		return this;
	}

	public Head setCheckbox(Boolean checkbox) {
		this.checkbox = checkbox;
		return this;
	}

	public String getTitle() {
		return title;
	}

	public String getField() {
		return field;
	}

	public int getWidth() {
		return width;
	}

	public String getAlign() {
		return align;
	}

	public String getCellAlign() {
		return cellAlign;
	}

	public Boolean getSortable() {
		return sortable;
	}

	public Boolean getResizable() {
		return resizable;
	}

	public Boolean getHidden() {
		return hidden;
	}

	public Boolean getCheckbox() {
		return checkbox;
	}

	public Boolean getTip() {
		return tip;
	}

	public Head setTip(Boolean tip) {
		this.tip = tip;
		return this;
	}

	public Boolean getFixed() {
		return fixed;
	}

	public Head setFixed(Boolean fixed) {
		this.fixed = fixed;
		return this;
	}

	public String getEditor() {
		return editor;
	}

	public Head setEditor(String editor) {
		this.editor = editor;
		return this;
	}

}
